package com.zhiche.lisa.lspm.dao.model.lsp;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 承运商银行账户
 * </p>
 *
 * @author qichao
 * @since 2018-06-27
 */
@TableName("lisa_lsp_bank_account")
public class LspBankAccount extends Model<LspBankAccount> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 承运商ID
     */
	@TableField("lsp_id")
	private Long lspId;
    /**
     * 银行卡号
     */
	@TableField("bank_account")
	private String bankAccount;
    /**
     * 账户名称
     */
	@TableField("bank_account_name")
	private String bankAccountName;
    /**
     * 开户银行
     */
	@TableField("bank_name")
	private String bankName;
    /**
     * 开户行名称
     */
	@TableField("account_bank_name")
	private String accountBankName;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;

	private String creator;
	/**
	 * 创建时间
	 */
	@TableField("gmt_create")
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getLspId() {
		return lspId;
	}

	public void setLspId(Long lspId) {
		this.lspId = lspId;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getBankAccountName() {
		return bankAccountName;
	}

	public void setBankAccountName(String bankAccountName) {
		this.bankAccountName = bankAccountName;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getAccountBankName() {
		return accountBankName;
	}

	public void setAccountBankName(String accountBankName) {
		this.accountBankName = accountBankName;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	public String toString() {
		return "LspBankAccount{" +
				"id=" + id +
				", lspId=" + lspId +
				", bankAccount='" + bankAccount + '\'' +
				", bankAccountName='" + bankAccountName + '\'' +
				", bankName='" + bankName + '\'' +
				", accountBankName='" + accountBankName + '\'' +
				", tenantId=" + tenantId +
				", creator='" + creator + '\'' +
				", gmtCreate=" + gmtCreate +
				", gmtModify=" + gmtModify +
				"} " + super.toString();
	}
}
